package com.egs.witzbackend.domain;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Move {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private String startX;
	@Persistent
	private String startY;
	@Persistent
	private String endX;
	@Persistent
	private String endY;
	@Persistent
	private String playerId;
	@Persistent
	private String boardBeforeMove;
	@Persistent
	private String boardAfterMove;
	@Persistent
	private String hpP1BeforeMove;
	@Persistent
	private String hpP2BeforeMove;
	@Persistent
	private String hpP1AfterMove;
	@Persistent
	private String hpP2AfterMove;
	
	public Move(String playerId, String startX, String startY, String endX, String endY, String boardBeforeMove, String boardAfterMove, String hpP1BeforeMove, String hpP2BeforeMove, String hpP1AfterMove, String hpP2AfterMove) {
		this.startX = startX;
		this.startY = startY;
		this.endX = endX;
		this.endY = endY;
		this.playerId = playerId;
		this.boardBeforeMove = boardBeforeMove;
		this.boardAfterMove = boardAfterMove;
		this.hpP1BeforeMove = hpP1BeforeMove;
		this.hpP2BeforeMove = hpP2BeforeMove;
		this.hpP1AfterMove = hpP1AfterMove;
		this.hpP2AfterMove = hpP2AfterMove;
	}
	
	public Key getKey() {
        return key;
    }
	public void setKey(Key key) {
		this.key = key;
	}

	public String getStartX() {
		return startX;
	}
	public void setStartX(String startX) {
		this.startX = startX;
	}


	public String getStartY() {
		return startY;
	}
	public void setStartY(String startY) {
		this.startY = startY;
	}


	public String getEndX() {
		return endX;
	}
	public void setEndX(String endX) {
		this.endX = endX;
	}

	public String getEndY() {
		return endY;
	}
	public void setEndY(String endY) {
		this.endY = endY;
	}

	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public String getBoardBeforeMove() {
		return boardBeforeMove;
	}

	public void setBoardBeforeMove(String boardBeforeMove) {
		this.boardBeforeMove = boardBeforeMove;
	}

	public String getBoardAfterMove() {
		return boardAfterMove;
	}

	public void setBoardAfterMove(String boardAfterMove) {
		this.boardAfterMove = boardAfterMove;
	}

	public String getHpP1BeforeMove() {
		return hpP1BeforeMove;
	}

	public void setHpP1BeforeMove(String hpP1BeforeMove) {
		this.hpP1BeforeMove = hpP1BeforeMove;
	}

	public String getHpP2BeforeMove() {
		return hpP2BeforeMove;
	}

	public void setHpP2BeforeMove(String hpP2BeforeMove) {
		this.hpP2BeforeMove = hpP2BeforeMove;
	}

	public String getHpP1AfterMove() {
		return hpP1AfterMove;
	}

	public void setHpP1AfterMove(String hpP1AfterMove) {
		this.hpP1AfterMove = hpP1AfterMove;
	}

	public String getHpP2AfterMove() {
		return hpP2AfterMove;
	}

	public void setHpP2AfterMove(String hpP2AfterMove) {
		this.hpP2AfterMove = hpP2AfterMove;
	}
}
